Creating a community
Create a community to use in forming a relationship between an SNMP agent and one or more SNMP managers. You require SNMP community strings to access the system using an SNMP-based management software.
Procedure
Example
In the following example, the community name is anewcommunity, the index is third, and the secname is readview. There is no group specified because this is a default public/read only group.
Switch:1>enable
Switch:1#configure terminal
Switch:1(config)#snmp-server community anewcommunity index third secname readview
Variable Definitions
The following table defines parameters for the snmp-server community command.
Variable |
Value |
---|---|
community WORD<1-32> |
Specifies a community string. The range is 1–32 characters. |
group WORD<1-32> |
Specifies the group name. The range is 1–32 characters. |
index WORD<1-32> |
Specifies the unique index value of a row in this table. The range is 1–32 characters. |
secname WORD<1-32> |
Maps the community string to the security name in the VACM Group Member Table. The range is 1-32 characters. |